package structural.bridge;

public class Test {
    public static void main(String[] args) {
        Bank icbcBank = new ICBCBank(new DepositAccount());
        Account account = icbcBank.openAccount();
        account.showAccountType();

        System.out.println("=======================");

        Bank icbcBank2 = new ICBCBank(new DepositAccount());
        Account account2 = icbcBank.openAccount();
        account2.showAccountType();

        System.out.println("=======================");

        Bank abcBank = new ABCBank(new SavingAccount());
        Account abcAccount = abcBank.openAccount();
        abcAccount.showAccountType();
    }
}
